package com.lungle.warmdiary.app.model.response;

import com.lungle.warmdiary.app.model.Entity;

import java.util.List;

/**
 * Created by zhangxueyuan on 16/9/30.
 */
public class CampaignMycomment extends Entity {

    /**
     * campaignid : 1
     * status : 0  0-待审核 1-已通过 2-未通过
     * rate : 1
     * content : xxxxx
     * auditInfo : 评分过低
     * images : ["http://screenshot1.png","http://screenshot2.png"]
     * shortLink : http://t.cn/**
     */

    private static final long serialVersionUID = 1L;
    private int campaignid;
    private int status;
    private int rate;
    private String content;
    private String auditInfo;
    private List<String> images;


    //后期设置
    private String productid;
    private int campaignStatus;
    private String shortLink;
    private String shareLinkTitle;


    public String getShareLinkTitle() {
        return shareLinkTitle;
    }

    public void setShareLinkTitle(String shareLinkTitle) {
        this.shareLinkTitle = shareLinkTitle;
    }

    public int getCampaignid() {
        return campaignid;
    }

    public void setCampaignid(int campaignid) {
        this.campaignid = campaignid;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getRate() {
        return rate;
    }

    public void setRate(int rate) {
        this.rate = rate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getAuditInfo() {
        return auditInfo;
    }

    public void setAuditInfo(String auditInfo) {
        this.auditInfo = auditInfo;
    }

    public String getShortLink() {
        return shortLink;
    }

    public void setShortLink(String shortLink) {
        this.shortLink = shortLink;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }


    public String getProductid() {
        return productid;
    }

    public void setProductid(String productid) {
        this.productid = productid;
    }

    public int getCampaignStatus() {
        return campaignStatus;
    }

    public void setCampaignStatus(int campaignStatus) {
        this.campaignStatus = campaignStatus;
    }

    public enum Status {
        EXECUTE(0, "待审核", 0xFF999999),
        PASS(1, "已通过", 0xFF4EB122),
        REFUSE(2, "未通过", 0xFFE34006);
        private int idx;
        public String title;
        public int color;


        private Status(int idx, String title, int color) {
            this.idx = idx;
            this.title = title;
            this.color = color;
        }

        public static Status getTabByIdx(int idx) {
            for (Status t : values()) {
                if (t.idx == idx)
                    return t;
            }
            return EXECUTE;
        }
    }
}
